#include "BiGraf.h"
#include "Dijkstra.h"
#include <conio.h>

double deikstra( CBiGraf<int>::CVertex* first, CBiGraf<int>::CVertex* second ) 
{ 
	return 0; 
}

int main()
{
	CBiGraf<int> graf;
	for ( int i = 0; i < 4; i++ )
		graf.AddVertex(i);
	graf.AddEdge( 0, 1, 1 );
	graf.AddEdge( 1, 3, 2 );
	graf.AddEdge( 0, 3, 5 );
	graf.AddEdge( 0, 2, 3 );
	graf.AddEdge( 2, 3, 1 );
	CDijkstra<int> dj( graf, 0 );
	vector<int> vect = dj.GetVertexSequence(3);
	for ( vector<int>::iterator it = vect.begin(); it != vect.end(); it++ )
		cout<<(*it)<<' ';
	_getch();
	return 0;
}